html, body, div, input, p {
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	height: 100%;
	position: relative;
}

.l {
	float: left;
}

.r {
	float: right;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.container {
	width: 100%;
	height: 100%;
	max-width: 500px;
	margin: 0 auto;
	position: relative;
}

.content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 60px;
	padding: 15px 0;
	overflow-y: auto;
	background-image: url(./images/chat-bg.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.section {
	float: left;
	max-width: 50%;
	background-color: #fff;
	padding: 5px 10px;
	font-size: 14px;
	border-radius: 6px;
	line-height: 1.3;
	word-wrap: break-word;
	box-shadow: 0 0 1px rgba(0,0,0,0.5);
	position: relative;
}

.section::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-right-color: #fff;
	left: -13px;
	top: 6px;
}

.section-self {
	float: right;
	background-color: #A8EC6C;
	position: relative;
}

.section-self::before {
	content: '';
	width: 0;
	height: 0;
	border: 0;
}

.section-self::after {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-left-color: #A8EC6C;
	right: -14px;
	top: 7px;
}

.control {
	position: absolute;
	width: 100%;
	height: 60px;
	bottom: 0;
	background-color: #f7f7f7;
}

#input {
	width: 60%;
	height: 30px;
	margin: 15px 0 0 5%;
	float: left;
	border: 0;
	border-bottom: 1px solid #5cb85c;
	outline: 0;
	background-color: transparent;
	font-size: 14px;
}

.send-btn {
	width: 25%;
	height: 40px;
	line-height: 40px;
	color: #fff;
	background-color: #337ab7;
	text-align: center;
	float: right;
	margin: 10px 5% 0 0;
	border-radius: 6px;

	/* position: relative; */
    /* padding: 20px; */
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.send-btn:after {
    content: "";
    background: #5989b3;
    display: block;
    /* position: absolute; */
    padding-top: 300%;
    padding-left: 350%;
    margin-left: -20px!important;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s
}

.send-btn:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s
}

.list {
	padding: 5px 20px;
	overflow: hidden;
	margin-top: 10px;
}

.list:first-child {
	margin-top: 0;
}

.info {
	display: inline-block;
	max-width: 50%;
	color: #f7f7f7;
	line-height: 1.3;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 4px;
	background-color: rgba(0,0,0,0.2);
	word-wrap: break-word;
}

.user-name {
	line-height: 1;
	font-size: 12px;
	color: #f1f1f1;
	margin-bottom: 3px;
}

.name-container{
	/* line-height: 40px; */
	background-color: #337ab7;
	float: center;
	margin: 10px 5% 0 0;
	border-radius: 6px;
	width: 100%;
	height: 100%;
	/* max-width: 500px;
	max-height: 500px; */
	margin: 0 auto;
	position: fixed;
	/* top: 30%;
	left: 37%; */
	background-image: url(./images/login-bg.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.name-tip{
	/* display: inline-block; */

	max-width: 100%;
	max-height: 30%;
	text-align: center;
	color: #f7f7f7;
	line-height: 1.3;
	font-size: 16px;
	padding: 3px 10px;
	border-radius: 4px;
	background-color: rgba(0,0,0,0.2);
	word-wrap: break-word;
}

.name-input{
	width: 60%;
	height: 30px;
	margin: 15px 0 0 5%;
	float: left;
	border: 0;
	border-bottom: 2px solid #fffc63;
	outline: 0;
	background-color: transparent;
	font-size: 26px;
	position:absolute;
    top:40%;

	animation-name:MySecond;
	animation-duration:5s;
	animation-timing-function:linear;
	animation-delay:0s;
	animation-iteration-count:infinite;
	animation-direction:alternate;
	animation-play-state:running;
}
@keyframes myfirst
{
	0%   {background:rgba(61, 248, 145, 0.795);}
	25%  {background:rgba(61, 211, 248, 0.795);}
	50%  {background:rgba(61, 95, 248, 0.795);}
	75%  {background:rgba(111, 61, 248, 0.795);}
	100% {background:rgba(217, 61, 248, 0.795);}
}
@keyframes MySecond
{
	0%   {border-bottom: 2px solid rgba(255, 0, 0, 0.712);}
	25%  {border-bottom: 2px solid rgba(255, 255, 0, 0.658);}
	50%  {border-bottom: 2px solid rgba(0, 0, 255, 0.705);}
	75%  {border-bottom: 2px solid rgba(0, 128, 0, 0.61);}
	100% {border-bottom: 2px solid rgba(255, 0, 0, 0.541);}
}



.name-btn {
	/* display: inline-block; */
	border-radius: 16px;
	background: rgba(61, 80, 248, 0.795);
	border: none;
	color: #FFFFFF;
	text-align: center;
	font-size: 24px;
	/* padding: 20px; */
	width: 22%;
	height: 40px;
	line-height: 40px;
	color: #fff;
	float: right;
	position:absolute;
	transition: all 0.5s;
	cursor: pointer;
	margin: 10px 5% 0 0;
	top:40%;
	right:0%;
	

	animation-name:myfirst;
	animation-duration:5s;
	animation-timing-function:linear;
	animation-delay:0s;
	animation-iteration-count:infinite;
	animation-direction:alternate;
	animation-play-state:running;

  }
  
  .name-btn span {
	cursor: pointer;
	/* display: inline-block; */
	position: relative;
	transition: 0.5s;
  }
  
  .name-btn span:after {
	content: '»';
	
	position: static;
	opacity: 0;
	top: 0;
	right: -20px;
	transition: 0.5s;
	/* margin: 10px 5% 0 0; */
	
  }
  
  .name-btn:hover span {
	padding-right: 25px;
  }
  
  .name-btn:hover span:after {
	opacity: 1;
	right: 0;
  }

  /* ================================================== */
  .space {
    width: 100%;
    height: 100%;

}
  .star {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #FFF;
    top: 100px;
    left: 400px;
    position: relative;
    transform-origin: 100% 0;
    animation: star-ani 6s infinite ease-out;
    box-shadow: 0 0 5px 5px rgba(255, 255, 255, .3);
    opacity: 0;
    z-index: 2;
}
.star:after {
    content: '';
    display: block;
    top: 0px;
    left: 4px;
    border: 0px solid #fff;
    border-width: 0px 90px 2px 90px;
    border-color: transparent transparent transparent rgba(255, 255, 255, .3);
   
	transform: rotate(-45deg) translate3d(5px, 10px, 0);
    box-shadow: 0 0 1px 0 rgba(255, 255, 255, .1);
    transform-origin: 0% 100%;
    animation: shooting-ani 3s infinite ease-out;
}
.pink {
    top: 30px;
    left: 395px;
    background: #ff5a99;
    animation-delay: 5s;
    -webkit-animation-delay: 5s;
    -moz-animation-delay: 5s;
}
.pink:after {
    border-color: transparent transparent transparent #ff5a99;
    animation-delay: 5s;
    -webkit-animation-delay: 5s;
    -moz-animation-delay: 5s;
}
.blue {
    top: 35px;
    left: 432px;
    background: cyan;
    animation-delay: 7s;
    -webkit-animation-delay: 7s;
    -moz-animation-delay: 7s;
}
.blue:after {
    border-color: transparent transparent transparent cyan;
    -webkit-animation-delay: 7s;
    -moz-animation-delay: 7s;
    animation-delay: 7s;
}
.yellow {
    top: 50px;
    left: 600px;
    background: #ffcd5c;
    animation-delay: 5.8s;
}
.yellow:after {
    border-color: transparent transparent transparent #ffcd5c;
    animation-delay: 5.8s;
}
@keyframes star-ani {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0) translate3d(0, 0, 0);
        -webkit-transform: scale(0) rotate(0) translate3d(0, 0, 0);
        -moz-transform: scale(0) rotate(0) translate3d(0, 0, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(0) translate3d(-200px, 200px, 0);
        -webkit-transform: scale(1) rotate(0) translate3d(-200px, 200px, 0);
        -moz-transform: scale(1) rotate(0) translate3d(-200px, 200px, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1) rotate(0) translate3d(-300px, 300px, 0);
        -webkit-transform: scale(1) rotate(0) translate3d(-300px, 300px, 0);
        -moz-transform: scale(1) rotate(0) translate3d(-300px, 300px, 0);
    }
}